#include<stdio.h>
struct S
{
	char name[20];
	int age;
	float d;
};
int main()
{
	char buffer[256]={0};
	struct S s={"zhangsan",20,95.5};
	sprintf(buffer,"%s %d %f",s.name,s.age,s.d);
	printf("%s\n",buffer);
	return 0;
}
